
# $Id: Makefile 34 2007-07-09 06:03:33Z kf701.ye $

CFLAGS=-Wall -Os
GLIB_LIBS=`pkg-config --libs glib-2.0`
GLIB_INCLUDES=`pkg-config --cflags glib-2.0`

export CFLAGS GLIB_LIBS GLIB_INCLUDES

CROSS_COMPILE	= #arm-linux-
AS              = $(CROSS_COMPILE)as
LD              = $(CROSS_COMPILE)ld
CC              = $(CROSS_COMPILE)gcc
CPP             = $(CC) -E
AR              = $(CROSS_COMPILE)ar
NM              = $(CROSS_COMPILE)nm
STRIP           = $(CROSS_COMPILE)strip
OBJCOPY         = $(CROSS_COMPILE)objcopy
OBJDUMP         = $(CROSS_COMPILE)objdump
LN		= ln -f
CHMOD		= chmod

export CC AS LD CPP AR NM STRIP OBJCOPY OBJDUMP LN CHMOD

.PHONY:  lib test

all:
	make lib
	make test
	make libdoc

lib:
	make -C lib static_lib

libdoc:
	make -C doc


test:
	make -C test

clean:
	make clean -C lib
	make clean -C test
